package com.tsunami.authority.entity.core;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tsunami.authority.enums.admin.MoldType;
import com.tsunami.authority.enums.auth.TypeStatus;
import com.tsunami.base.entity.Entity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 部门类型
 *
 * @author lx
 * @date 2024/6/26 13:56
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@TableName("tnm_core_dept_type")
@Schema(description = "部门类型管理")
public class DeptType extends Entity<Long> {
    @Schema(description = "租户号")
    @TableField(value = "tenant_id")
    private Long tenantId;
    /**
     * 部门类型名称
     */
    @Schema(description = "部门类型名称")
    @TableField(value = "name")
    private String name;
    /**
     * 是否系统类型
     */
    @Schema(description = "是否系统类型")
    @TableField(value = "sys")
    private Boolean sys;
    /**
     * 是否启用
     */
    @Schema(description = "是否启用")
    @TableField(value = "status")
    private Boolean status;
    /**
     * 排序号，按照
     */
    @Schema(description = "类型排序号")
    @TableField(value = "type")
    private Integer type;
    @Schema(description = "行业类型")
    @TableField(value = "mold")
    private MoldType mold;
    @Schema(description = "是否教学类型")
    @TableField(value = "study")
    private TypeStatus study;
}
